﻿using System.Collections.Generic;
using UnityEngine;

/*�ųǽ���*/

public class Test_Resources : MonoBehaviour
{
    private GameObject prefab;

    private void Start()
    {
        prefab = Resources.Load<GameObject>("Cube");//加载预制体

        //测试生成,go才是场景中的物体
        Instantiate(prefab, Vector3.zero, Quaternion.identity);
    }
}